﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="NhanHangVeTuChiNhanh.ascx.cs" Inherits="WebUserControl_NhanHangVeTuChiNhanh" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<%@ Register assembly="newWindow" namespace="newWindow" tagprefix="cc1" %>
<%@ Register Assembly="CSharp_MessageBox" Namespace="CSharp_MessageBox" TagPrefix="CS_Msg" %>
<%@ Import Namespace="BCDataCenter" %>
<%@ Register src="uscMsgBox.ascx" tagname="uscMsgBox" tagprefix="uc2" %>
<link rel="stylesheet" href='<%=ResolveUrl("~/LayoutCss/K_BaoCaoFormLayout.css")%>' type="text/css" />
<link rel="stylesheet" href='<%=ResolveUrl("~/LayoutCss/datePicker.css")%>' type="text/css" />

<style type="text/css">
     .AutoExtender
        {
            font-family: Verdana, Helvetica, sans-serif;
            font-size: .8em;
            font-weight: normal;
            border: solid 1px #006699;
            line-height: 20px;
            padding: 10px;
            background-color: White;
            margin-left:10px;
        }
        .AutoExtenderList
        {
            border-bottom: dotted 1px #006699;
            cursor: pointer;
            color: Maroon;
        }
        .AutoExtenderHighlight
        {
            color: White;
            background-color: #006699;
            cursor: pointer;
        }
        #divwidth
        {
          width: auto !important;    
        }
        #divwidth div
       {
        width: auto !important;   
       }
    .style1
    {
        width: 714px;
        height: 414px;
    }
    .style2
    {
        width: 1052px;
    }
    .style4
    {
        width: 705px;
        height: 24px;
    }
    .style6
    {
        width: 705px;
        height: 19px;
    }
    .style7
    {
        width: 705px;
    }
    .style8
    {
        width: 705px;
        height: 27px;
    }
    </style>
 
<script type="text/javascript">
     function pageLoad() {
     
     $(function()
     {
	    $("#<%= txtNgay.ClientID %>").datePicker(
		{
			clickInput:true,
			startDate: '01/01/1970'
		}
	);
});

     
        $("#<%= ImageButton2.ClientID %>").click(function() { 
        $.blockUI({
             message: '<h1>Xin vui lòng chờ xử lý</h1>', 
            css: { 
            border: 'none', 
            padding: '15px', 
            backgroundColor: '#f00', 
            opacity: .5, 
            color: '#fff' 
        } }); 
        }); 
     
       $("#<%= imb_xoa.ClientID %>").click(function() { 
        $.blockUI({
             message: '<h1>Xin vui lòng chờ xử lý</h1>', 
            css: { 
            border: 'none', 
            padding: '15px', 
            backgroundColor: '#f00', 
            opacity: .5, 
            color: '#fff' 
        } }); 
        }); 
     
        
        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
                function EndRequestHandler(sender, args) {
                        $.unblockUI();
                }
        }  
   
</script>  

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
 <fieldset>
    <legend>Nhận hàng về từ chi nhánh</legend>
    <asp:Panel ID="Panel1" runat="server" Width="100%" BackColor="#EBEBEB">
                        <asp:ImageButton ID="ImageButton2" runat="server" Height="25px" ImageUrl="~/image/Save.png" Width="20px" onclick="ImageButton2_Click"     ToolTip="Lưu" />
                        <asp:ImageButton ID="imb_xoa" runat="server" Height="25px" Width="25px" ImageUrl="~/image/Symbol-Delete.png" onclick="imb_xoa_Click"  ToolTip="Xóa"/>
  </asp:Panel>
    <cc1:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" Height="500px" Width="100%">
        <cc1:TabPanel runat="server" HeaderText="Thông tin chung" ID="TabPanel1" TabIndex="0">
            <ContentTemplate>
                 <div class="fm-req">
                    <label for="maSo">Số chứng từ :</label>
                     <asp:TextBox ID="txtSoChungTu" BackColor="Yellow" ReadOnly="true" runat="server"></asp:TextBox>
                     
                 </div>
                 <div class="fm-req">
                    <label for="maSo">Ngày :</label>
                     <asp:TextBox ID="txtNgay" runat="server"></asp:TextBox>
                     
                 </div>
                  <div class="fm-req">
                    <label for="DropLocation">Chọn kho :</label>
                      <asp:DropDownList ID="DropLocation" runat="server">
                      </asp:DropDownList>
                     
                 </div>
                 <div class="fm-req">
                    <label for="maSo">Mã SO :</label>
                     <asp:TextBox ID="txtMaSO" runat="server"></asp:TextBox>
                     <asp:Button ID="btChon" Width="100px" onclick="btChon_Click" runat="server" Text="Chọn" />
                 </div>
                 <br />
                  <asp:GridView ID="GridView2" runat="server"  
                            AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" 
                            GridLines="None">
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                    <asp:BoundField DataField="mRowNo" HeaderText="STT" />
                    <asp:BoundField DataField="mItemKey" HeaderText="Mã hàng" />
                    <asp:BoundField DataField="mItemDesc" HeaderText="Tên hàng" />
                    <asp:BoundField DataField="mQty" HeaderText="Số lượng" />
                    <asp:BoundField DataField="mCost" HeaderText="Đơn giá" />
                    
                    </Columns>
                    <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                    <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                    <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                    </asp:GridView>
                   
            </ContentTemplate>
        </cc1:TabPanel>
        <cc1:TabPanel ID="TabPanel4" runat="server" HeaderText="Tìm kiếm" TabIndex="1">
        <ContentTemplate>
        <div>
        <asp:Button ID="btRequest" Width="100px" onclick="btRequest_Click" runat="server" Text="Refresh" />
        </div>
        <div>
                <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                            AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" 
                            GridLines="None" onpageindexchanging="GridView1_PageIndexChanging" 
                            onrowcommand="GridView1_RowCommand" PageSize="5">
                    <AlternatingRowStyle BackColor="White" /><Columns>
                    <asp:BoundField DataField="docno" HeaderText="Mã chứng từ" />
                    <asp:BoundField DataField="docDate" HeaderText="Ngày" />
                    <asp:BoundField DataField="SONo" HeaderText="Số S.O" />
                    <asp:TemplateField>
                    <ItemTemplate>
                    <asp:ImageButton ID="ImageButton4" runat="server" CausesValidation="False" CommandName="chon" Height="30px" ImageUrl="~/image/Symbol-Check.png" Width="30px" />
                    </ItemTemplate>
                    <ControlStyle  BackColor="White" BorderColor="White" />
                    <FooterStyle BackColor="White" BorderColor="White" />
                    <HeaderStyle BackColor="White" BorderColor="White" />
                    <ItemStyle BackColor="White" BorderColor="White" />
                    </asp:TemplateField></Columns>
                    <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                    <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                    <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                    </asp:GridView>
                   
                    </div>
        </ContentTemplate>
        </cc1:TabPanel>
    </cc1:TabContainer>  
 </fieldset>
 </ContentTemplate>
 </asp:UpdatePanel>
 <uc2:uscMsgBox ID="uscMsgBox1" runat="server" />
   

        

